package com.service;

import com.pojo.Consumption;
import com.pojo.User;

import java.util.List;
import java.util.Optional;

public interface UserService {
    public List<User> selectUserAll();
    public User login(User user);
    public void register(User user);
    public Optional<User> getUserByCardNumber(String cardNumber);
    public void updateUser(User user);
    User loginByNumberAndPassword(String number, String mima);

    void triggerRandomConsumption(User user) throws Exception;

    List<Consumption> getConsumptionRecords(int userId);

    void initializeUserRemainingData();
    User getUserById(int id);
}
